package com.service.member;

import com.bean.Js;
import com.bean.Mb_account;
import com.bean.Member;
import com.bean.Sys_user;
import com.github.pagehelper.Page;
import com.service.core.BaseService;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 会员业务模块
 */
public interface MemberService extends BaseService<Member, Integer> {
    Member getMeberByTel(String tel);

    Member getMeberByLoginName(String loginName);

    Page findMembersByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap);

    Member getMemberByMerchantId(Integer id);

    /**
     * 查询下级推广数量
     * @param mid
     * @param lv 推广等级
     * @return
     */
    int getInferiorsNumByLv(Integer mid,Integer lv,String startTime,String endTime);

    Page findInferiorsByPage(int pageNum, int pageSize, HashMap<String, Object> paraMap);

    List<Map> countMember(HashMap<String, Object> paraMap);

    Member getMeberByOpenId(String openId);
}
